<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
        
        <!-- <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script> -->
        <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
</head>
<body>
    

<script>
    // console.log(axios);
    //1.调用axios方法的返回值是Promise对象
    axios({
        //请求方式
        method:'GET',
        //请求地址
        url:'http://www.liulongbin.top:3006/api/getbooks',
        //URL中的查询参数
        params:{},
        //请求体参数
        data:{}
    }).then(function(result){
        console.log(result);
    })
</script>
</body>
</html>